/**
 * Created with JetBrains PhpStorm.
 * User: jiangshuguang
 * Date: 14-10-28
 * Time: 上午11:41
 * To change this template use File | Settings | File Templates.
 */


//document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
//
//    WeixinJSBridge.invoke("addContact", {webtype: "1",username: 'gh_122a2ee67fae'}, function(e) {
//        WeixinJSBridge.log(e.err_msg);
//        //e.err_msg:add_contact:added 已经添加
//        //e.err_msg:add_contact:cancel 取消添加
//        //e.err_msg:add_contact:ok 添加成功
//        if(e.err_msg == 'add_contact:added' || e.err_msg == 'add_contact:ok'){
//            //关注成功，或者已经关注过
//        }
//    })
//
//});